if MAINTAINER_MODE

asciidoc=asciidoc -d manpage

man_MANS = cntraining.1  combine_tessdata.1  mftraining.1  tesseract.1 \
	unicharset_extractor.1  wordlist2dawg.1 unicharambigs.5 \
	unicharset.5 ambiguous_words.1 shapeclustering.1 dawg2wordlist.1

EXTRA_DIST = $(man_MANS) Doxyfile

%: %.asc
	$(asciidoc) -o $@ $<

MAINTAINERCLEANFILES = $(man_MANS) Doxyfile

endif # MAINTAINER_MODE
